import axios from "../request.use";

// 请求类（ mine 我的 ）
class TenderApiClass {
  // 公告搜索
  getAnnouncementList(query) {
    return axios.request({
      url: "project/announcement/search",
      method: "get",
      data: query,
    });
  }

  // 公告详情
  getAnnouncementDetail(query) {
    return axios.request({
      url: "project/announcement/detail",
      method: "get",
      data: query,
    });
  }

  // 企业搜索
  getCompanyList(query) {
    return axios.request({
      url: "company/search",
      method: "get",
      data: query,
    });
  }
  // 企业详情
  getCompanyDetail(query) {
    return axios.request({
      url: "company/detail",
      method: "get",
      data: query,
    });
  }
}

const tenderApi = new TenderApiClass();

export { tenderApi };
